package com.cyh.controller;

import com.cyh.service.DemoServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;


@Controller
public class DemoController {

    @RequestMapping("/show")
    public String show(@RequestParam(value = "name", required = true) String name) {
        System.out.println("show running.....");
        DemoServiceImpl demoService = new DemoServiceImpl();
        demoService.show1();
        return "index";
    }
}
